/*访问后台的代码*/
layui.define([], function(exports) {
    var api={
        detailsExportDocument:function(form,callback){
            var formPara = form.serializeJson();
            Common.post("/cms/excel/excel/appropriationDetailsExport.json", formPara, function(fileId) {
                callback(fileId);
            })
        },
        exportExcel:function(form,callback){
            var formPara = form.serializeJson();
            Common.post("/cms/excel/excel/businessExport.json", formPara, function(fileId) {
                callback(fileId);
            })
        },
        compnayDetailsExportDocument:function(form,callback){
            var formPara = form.serializeJson();
            Common.post("/cms/excel/excel/appropriationDetailsExport.json", formPara, function(fileId) {
                callback(fileId);
            })
        },
        companyExportExcel:function(form,callback){
            var formPara = form.serializeJson();
            Common.post("/cms/excel/excel/companyBusinessExport.json", formPara, function(fileId) {
                callback(fileId);
            })
        }
    };
    exports('excelApi',api);
});